package collection;

import string.Point;

import java.util.HashSet;
import java.util.Set;

public class SetDemo {
    public static void main(String[] args) {
        Set<String> set = new HashSet<String>();
        set.add("A");
        set.add("B");
        set.add("C");
        System.out.println(set);

        Set<Point> set2 = new HashSet();
        Point p1 = new Point(100,200);
        Point p2 = new Point(300,400);
        set2.add(p1);
        set2.add(p2);
        System.out.println(set2);

    }
}
